using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品
    /// </summary>
    public partial class corecmsfood
    {
        /// <summary>
        /// 规格Id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 foodId { get; set; }
        /// <summary>
        /// 规格Id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 foodSpecIds { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodSpecName { get; set; }

        /// <summary>
        /// 规格单位
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodUnitName { get; set; }

        /// <summary>
        /// 商品条形码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String code { get; set; }
        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal posPrice { get; set; }


        /// <summary>
        /// 会员价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal vipPrice { get; set; }


        /// <summary>
        /// 成本价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal purPrice { get; set; }


        /// <summary>
        /// 配送价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal rmoPrice { get; set; }

        /// <summary>
        /// 是否沽清可售
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean IsSoldout { get; set; } = false;

        /// <summary>
        /// 称重Plu
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32? weighPlu { get; set; }

        /// <summary>
        /// 默认选中
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 isSelected { get; set; } = 0;

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfoodspec> specList { get; set; } = new List<corecmsfoodspec>();
    }
}
